package com.lvwenguo.utils;

import com.lvwenguo.model.EchartsCategory;

import java.util.Comparator;

public class SortByIndex implements Comparator<EchartsCategory> {
    @Override
    public int compare(EchartsCategory o1, EchartsCategory o2) {
        if(o1.getSale_count()<o2.getSale_count()) {
            return 1;
        }
        return -1;
    }
}
